﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace Twi.COMMON.WPF
{
    public class RowXElementHelper
    {
        public static List<RowXElement> GetFlattenedTreeViewItems(IEnumerable<XElement> source)
        {
            List<RowXElement> rowList = new List<RowXElement>();
            foreach (XElement x in source)
            {
                new RowXElement(x, null, rowList);
            }
            return rowList;
        }
    }
}
